package com.swf.common.jar;

import java.util.*;

import org.slf4j.*;

import com.swf.common.exception.*;
import com.swf.common.i18n.*;

public class ClassInfoXMLReader extends AbstractXMLReader{
	public static final String XML_CLASSINFOS = "classInfos";
	public static final String XML_CLASSINFO = "classInfo";
	public static final String XML_JAR = "jar";
	public static final String XML_JAR_ATTRIBUTE_NAME = "name";
	
	
	/**
	 * 存放所有classInfo的集合
	 */
	private Map<String, ClassInfo> classInfoMap = new HashMap<String, ClassInfo>();
	private static Logger logger = LoggerFactory
			.getLogger(ClassInfoXMLReader.class);
	
	
	public ClassInfoXMLReader(String fileName) throws FwsException {
		super(fileName);
	}
	
	public ClassInfoXMLReader(String fileName,String encoding) throws FwsException {
		super(fileName, encoding);
	}


	@Override
	public Map<String, ClassInfo> getResources() {
		ClassInfoVisitor cv =new ClassInfoVisitor();
		rootNode.accept(cv);
		return cv.getResourceMap();
	}

	
	
	
}
